<%@ page language="java" import="java.util.*, Data.Teachersk"
	pageEncoding="UTF-8"%>
<html>
<head>
<title>删除信息</title>
</head>

<body>
	<form action="TeacherskServlet" method="post">
		<h3 style="text-align: center;">删除信息</h3>
		<table style="margin: auto;">
			<%
				if (request.getAttribute("all") != null) {
					if (request.getAttribute("all").equals("数据库为空")) {
			%>
			<%=request.getAttribute("all")%>
			<%
				} else {
						List<Teachersk> list = new ArrayList<Teachersk>();
						list = (List<Teachersk>) request.getAttribute("all");
			%>
			<tr>
				<td style="width: 100px; font-size: 20px;text-align:center;">工号</td>
				<td style="width: 70px; font-size: 20px;text-align:center;">课程号</td>
			</tr>
			<%
				for (Teachersk item : list) {
			%>
			<tr>
				<td style="text-align:center;"><label for=<%=item.getT_id()%>><%=item.getT_id()%></label>
				</td>
				<td style="text-align:center;"><label for=<%=item.getT_id()%>><%=item.getC_id()%></label>
				</td>
				<td><input type="radio" name="t_id" id=<%=item.getT_id()%>
					value=<%=item.getT_id()%>></td>
				<td style="display: none;"><input type="radio" name="c_id" checked
					value=<%=item.getC_id()%>></td>
			</tr>
			<%
				}
					}
			%>
			<%
				}
			%>
			<tr>
				<td><input type="radio" checked value="d" name="two"
					style="display: none;">
				</td>
				<td></td>
			</tr>
			<tr>
				<td><input type="submit" value="提交"></td>
				<td><input type="reset" value="取消"></td>
			</tr>
		</table>
	</form>
</body>
</html>
